import java.io.*;

public class IODemo7 {
    public static void main(String[] args) {
        //写文件
        try(OutputStream outputStream = new FileOutputStream("./test.txt")) {
            outputStream.write(102);
            outputStream.write(105);
            outputStream.write(98);
        }  catch (IOException e) {
            e.printStackTrace();
        } ;
    }
}
